package com.ljw.gulimall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ljw.common.utils.PageUtils;
import com.ljw.gulimall.order.entity.OrderEntity;
import com.ljw.gulimall.order.vo.*;

import java.util.Map;

/**
 * 订单
 *
 * @author molimicha
 * @email 1328388970@qq.com
 * @date 2022-04-05 18:24:18
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 订单确认页返回需要用的数据
     * @return
     */
    OrderConfirmVo confirmOrder();

    SubmitOrderResponseVo submitOrder(OrderSubmitVo orderSubmitVo);

    OrderEntity getOrderStatus(String orderSn);

    void closeOrder(OrderEntity entity);

    PayVo getOrderPay(String orderSn);

    PageUtils queryPageWithItem(Map<String, Object> params);

    String handlePayResult(PayAsyncVo payAsyncVo);
}

